import unittest
# unittest是Python里自带的单元测试框架


class DemoTestCase(unittest.TestCase):
    def test01(self):
        # 断言值相等, a=b, 断言失败则打印msg
        self.assertEqual(1, 1, msg='断言失败')

    def test02(self):
        # 断言值不相等, a!=b, 断言失败则打印msg
        self.assertNotEqual(1, 1, msg='断言失败')


if __name__ == '__main__':
    unittest.main(verbosity=2)
